fix sha on continous releases from github. (#736)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 14 Oct 2021 18:03:06 +0000 (12:03 -0600)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 18:03:06 +0000 (12:03 -0600)
tools/uploadtool/upload_github.sh

index c67a58923866f9f0f2fbe9fdf84f7557d097f6b0..751f07e980f66892ffa9d3e3dc3bdc24da3e708e 100755 (executable)
@@ -92,7 +92,7 @@ if [ "{$GITHUB_SHA}" != "$target_commit_sha" ] ; then
         "${delete_url}"
   fi
 
-  if [ "$RELEASE_NAME" == "continuous" ] ; then
+  if [ "$(expr "$RELEASE_NAME" : '.*\(continuous\)')" == "continuous" ] ; then
     # if this is a continuous build tag, then delete the old tag
     # in preparation for the new release
     echo "Delete the tag..."